const meeting = {
  state: {//存放状态
    socket:undefined,//socketio客户端连接对象
  },
  mutations: {//state成员操作this.$store.commit('SET_USER_ID',id)调用
    setSocket: (state, socket) => { state.socket = socket }
  },
  actions: {//异步操作：Actions来专门进行异步操作，最终提交mutation方法
    LoginByUsername({commit,dispatch,state},data) {
      return new Promise((resolve, reject) => {
        if(true){
          resolve();
        }else{
          reject();
        }
      })
    },
  }
}

export default meeting
